package deprecated;
import Appointment;

import java.util.ArrayList;

/**
 * This class represents a day and holds all of the appointments that occur on that day.
 * 
 * @author Matthew Edwards 
 * @version 3-5-11
 */
public class AppointmentDay {
    
	private int day;
	
    private ArrayList<Appointment> appointments;
    
    /**
     * Creates a new day.
     * 
     * @param day the day of the month.
     */
    public AppointmentDay(int day){
    	this.day = day;
    	appointments = new ArrayList<Appointment>();
    }
    
    /**
     * Adds an appointment to this day
     * 
     * @param appointment the appointment to be added.
     */
    public void addAppointment(Appointment appointment){
    	appointments.add(appointment);
    }
    
    /**
     * gets the ArrayList of appointments
     * 
     * @return the ArrayList of appointments
     */
    public ArrayList<Appointment> getAppointments(){
    	return appointments;
    }
    
    /**
     * Sets the day
     * 
     * @param day the day of the month
     */
    public void setDay(int day){
    	this.day = day;
    }
    
    /**
     * returns the day
     * 
     * @return the day of the month
     */
    public int getDay(){
    	return day;
    }
    
}